// ValidationAspects
// Written by Mike Saunders
// Released under Microsoft Public License (Ms-PL)
using System;

namespace ValidationAspects.Sdk
{
	public static class Enforce
	{
		public static void IsNotNull(object value, string name)
		{
			if (value == null)
				throw new ArgumentNullException(name);
		}

		public static void IsNotNullOrEmpty(string value, string name)
		{
			if (string.IsNullOrEmpty(value))
				throw new ArgumentNullException(name);
		}
	}
}